package com.cskt.petproject178.pojo.param;

import java.util.List;

/**
 * 搜索参数实体类
 *
 * @author 27013
 **/


public class SearchProductParam {
    //品牌id
    private Integer brandId;
    //一级分类id
    private Integer productLevel1CategoryId;
       //二级分类id
    private Integer productLevel2CategoryId;
    //关键字搜索字段，可以直接搜索商品名称或者副标题关键字
    private String keyword;
    //商品筛选属性id集合，多个属性之间是and关系
    private List<Long> productAttributeIds;
    //排序字段，0：综合排序，1：销量，2：价格，3：新品
    private Integer sort;
    private Integer pageNo=1;
    private Integer pageSize=20;
    private Integer currentPage=0;


    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
        this.currentPage=(pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getProductLevel1CategoryId() {
        return productLevel1CategoryId;
    }

    public void setProductLevel1CategoryId(Integer productLevel1CategoryId) {
        this.productLevel1CategoryId = productLevel1CategoryId;
    }

    public Integer getProductLevel2CategoryId() {
        return productLevel2CategoryId;
    }

    public void setProductLevel2CategoryId(Integer productLevel2CategoryId) {
        this.productLevel2CategoryId = productLevel2CategoryId;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public List<Long> getProductAttributeIds() {
        return productAttributeIds;
    }

    public void setProductAttributeIds(List<Long> productAttributeIds) {
        this.productAttributeIds = productAttributeIds;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }
}
